package Demo;

public class Pets {
    private String name;

    public Pets(String name) {
        this.name = "pets";
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public void eat(){
        System.out.println("宠物进食");
    }
}
